package com.zhou.dto.admin;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @Description : 用户信息完善
 * @Author : zyy
 * @Date: 2024/6/14  14:33
 */
@Data
public class APIAdminDTO {

    @Schema(name = "手机号", type = "string")
    @TableField("phone")
    @NotEmpty(message = "手机号不能为空")
    private String phone;

    @Schema(name = "真实姓名", type = "string")
    @TableField("name")
    @NotEmpty(message = "真实姓名不能为空")
    private String name;

    @Schema(name = "用户名", type = "string")
    @TableField("nick_name")
    private String nickName;

    @Schema(name = "身份证", type = "string")
    @TableField("id_card")
    @NotEmpty(message = "身份证不能为空")
    private String idCard;

    @Schema(name = "微信号", type = "string")
    @TableField("wx_id")
    private String wxId;

    @Schema(name = "性别", type = "int")
    @TableField("gender")
    @NotNull(message = "性别不能为空")
    private Integer gender;

    @Schema(name = "头像", type = "string")
    @TableField("avatar")
    @NotEmpty(message = "头像不能为空")
    private String avatar;

    @Schema(name = "地址", type = "string")
    @TableField("address")
    private String address;

    @Schema(name = "学历", type = "string")
    @TableField("qualification")
    private String qualification;

    @Schema(name = "薪水", type = "decimal")
    @TableField("salary")
    private BigDecimal salary;

    @Schema(name = "爱好", type = "string")
    @TableField("hobby")
    private String hobby;
}
